package host.springboot.framework.autoconfigure.web.properties;

import host.springboot.framework.autoconfigure.KrismileProperties;
import host.springboot.framework.autoconfigure.web.properties.children.KsJacksonProperties;
import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.boot.context.properties.NestedConfigurationProperty;

/**
 * 上下文配置文件
 *
 * <pre>{@code
 * # -------------------------------- KrismileConfig --------------------------------
 * krismile:
 *   web:
 *     # Jackson配置
 *     jackson:
 *       # 是否开启配置
 *       enabled: true
 * }</pre>
 *
 * @author JiYinchuan
 * @since 1.0.0
 */
@Data
@ConfigurationProperties(prefix = KsWebProperties.KEY)
public class KsWebProperties {

    public static final String KEY = KrismileProperties.KEY + "." + "web";

    /**
     * Jackson配置文件
     */
    @NestedConfigurationProperty
    private KsJacksonProperties jackson = new KsJacksonProperties();

}
